import {
  Controller,
  Get,
  Post,
  Body,
  Param,
  Delete,
  UseGuards,
} from '@nestjs/common';
import { GroupPlayerScoreService } from './group-player-score.service';
import { CreateGroupPlayerScoreDto } from './dto/create-group-player-score.dto';
import { ApiBearerAuth } from '@nestjs/swagger';
import { Auth } from 'src/common/decorators/auth.decorator';



@Auth()
@ApiBearerAuth()
@Controller('group-player-score')
export class GroupPlayerScoreController {
  constructor(
    private readonly groupPlayerScoreService: GroupPlayerScoreService,
  ) {}

  @Post()
  create(@Body() createGroupPlayerScoreDto: CreateGroupPlayerScoreDto) {
    return this.groupPlayerScoreService.create(createGroupPlayerScoreDto);
  }

  @Get()
  findAll() {
    return this.groupPlayerScoreService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.groupPlayerScoreService.findOne(+id);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.groupPlayerScoreService.remove(+id);
  }
}
